package com.hoshiicloud.user.service.organization;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.user.entity.organization.ComOrganizationUsers;

import java.util.List;

/**
 * <p>
 * 租户机构用户 服务类
 * </p>
 *
 * @author campchen
 * @since 2019-05-27
 */
public interface ComOrganizationUsersService extends IService<ComOrganizationUsers> {

    ComOrganizationUsers getById(Long id);

    ComOrganizationUsers getByMemeberId(Long memberId);

    ComOrganizationUsers getByOrgcode(String orgcode);

/*    List<ComOrganizationUsers> getByEntity(ComOrganizationUsers comOrganizationUsers);*/

    String insert(ComOrganizationUsers entity);

    boolean updateById(ComOrganizationUsers entity);

    boolean deleteById(long id);

    List<ComOrganizationUsers> getByIds(List<Long> ids,String key);

    IPage<ComOrganizationUsers> getPage(IPage<ComOrganizationUsers> page, QueryWrapper<ComOrganizationUsers> queryWrapper, String key);

}
